home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Alles Voor Internet / Tout Pour Internet
/
alles voor internet.iso
/
MacInternet™
/
Telnet
/
NCSA
/
tn3270 2.4d7 source
/
tn3270
/
library.kbmap
< prev
next >
Wrap
Text File
|
1992-04-17
|
15KB
|
511 lines
#
# tn3270 for the Macintosh Source Code
# Brown University Computing and Information Services
# Version 2.4d7 April, 1992
# Copyright (c) 1988, 1989, 1990, 1991, 1992 by Brown University and by
# Peter John DiCamillo.
#
# Permission is granted to any individual or institution to use, copy,
# or redistribute the binary version of this software and its
# documentation provided this notice and the copyright notices are
# retained. Permission is granted to any individual or non-profit
# institution to use, copy, modify, or redistribute the source files
# of this software provided this notice and the copyright notices are
# retained. This software may not be distributed for profit, either
# in original form or in derivative works, nor can the source be
# distributed to other than an individual or a non-profit institution.
# Any individual or group interested in seeing and/or using these
# source files but who are prevented from doing so by the above
# constraints should contact Don Wolfe, Assistant Vice-President for
# Computer Systems at Brown University, (401) 863-7250, for possible
# software licensing of the source developed at Brown.
#
# Brown University and Peter John DiCamillo make no representations
# about the suitability of this software for any purpose.
#
# BROWN UNIVERSITY AND PETER JOHN DICAMILLO GIVE NO WARRANTY, EITHER
# EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION PROVIDED,
# INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY AND
# WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
#
#
# tn3270 keycode mapping definition
#
# General syntax rules:
# Case is ignored except in the name of the key mapping, and in character
# literals, e.g. 'a'.
#
# Blank lines, white space, and any text following "#" on a line is ignored.
#
# The three types of definition lines are the mapping name definition, the
# mapping number definition, and the key mapping definition:
#
# To name this mapping:
# name: {mapping name}
# Underscores in the name are replaced by blanks. Use two consecutive
# underscores to include an underscore in the name.
#
# To assign a resource number for this mapping:
# number: {resource number}
# This number is only used when the resource is written out in "Rez"
# file format.
#
# To map a function to a key sequence:
# function = [modifier] {'literal' | "hexcode" | "Khexcode"}
#
# Function names are listed below. Following each name enclosed in
# parenthesis is the EBCDIC hex code the name maps to.
# Punctuation Marks:
# space (40) cent (4A) period (4B) less (4C)
# lparen (4D) plus (4E) or (4F) ampersand (50)
# exclaim (5A) dollar (5B) asterisk (5C) rparen (5D)
# semi (5E) not (5F) minus (60) slash (61)
# vertical (6A) comma (6B) percent (6C) underscore (6D)
# greater (6E) question (6F) accent (79) colon (7A)
# pound (7B) at (7C) apostrophe (7D) equal (7E)
# dblquote (7F) tilde (A1) lbrack (AD) rbrack (BD)
# lbrace (C0) rbrace (D0)
# Lowercase Letters:
# lca through lci (81 through 89)
# lcj through lcr (91 through 99)
# lcs through lcz (A2 through A9)
# Uppercase Letters:
# a through i (C1 through C9)
# j through r (D1 through D9)
# s through z (E2 through E9)
# Digits:
# 0 through 9 (F0 through F9)
# APL Characters: (hex codes given are preceded by Graphics Escape)
# Note: APL mode must be in effect for these characters to be generated.
# a_ through i_ (41 through 49) (underscored uppercase letters)
# j_ through r_ (51 through 59)
# s_ through z_ (62 through 69)
# i-beam (DA) del-tilde (FB) grade-down (DC)
# grade-up (DD) vert-rotate (CD) transpose (CF)
# hor-rotate (ED) logarithm (FD) nor (CB)
# nand (CA) apl-exclaim (DB) domino (EE)
# quote-quad (DE) delta_ (FC) format (FE)
# execute (EF) lamp (DF) expand (EB)
# compress (EA)
# ALA Characters (for use the built-in ALA font)
# subfield_delimiter (1F) acute (9B)
# end_of_line (2A) ala_circumflex (9C)
# start_of_message (38) hacek (9D)
# paragraph (39) ligature_second_half (9E)
# dagger (3A) double_tilde_second_half (9F)
# double_dagger (3B) ala_dagger (A0)
# polish_l_upper (41) sub_plus (AA)
# scandinavian_o_upper (42) sub_lparen (AB)
# d_with_crossbar_upper (43) pincushion (AC)
# icelandic_thorn_upper (44) sub_minus (AE)
# digraph_ae_upper (45) sub_rparen (AF)
# digraph_oe_upper (46) sup0 (B0)
# o-hook_upper (47) sup1 (B1)
# u-hook_upper (48) sup2 (B2)
# soft_sign (49) sup3 (B3)
# polish_l_lower (51) sup4 (B4)
# scandinavian_o_lower (52) sup5 (B5)
# d_with_crossbar_lower (53) sup6 (B6)
# icelandic_thorn_lower (54) sup7 (B7)
# digraph_ae_lower (55) sup8 (B8)
# digraph_oe_lower (56) sup9 (B9)
# o-hook_lower (57) sup_plus (BA)
# u-hook_lower (58) sup_lparen (BB)
# hard_sign (59) asper (BC)
# ayn (62) sup_minus (BE)
# alif (63) sup_rparen (BF)
# dot_in_middle_of_line (64) circle_below (CA)
# turkish_i_lower (65) dot_below (CB)
# musical_flat (66) double_dot_below (CC)
# subscript_patent_mark (67) breve (CD)
# eth (68) ala_tilde (CE)
# plus_or_minus (69) pseudo_question (CF)
# sub0 (70) cedilla (DA)
# sub1 (71) high_comma_centered (DB)
# sub2 (72) right_hook (DC)
# sub3 (73) upadhmaniya (DD)
# sub4 (74) macron (DE)
# sub5 (75) double_acute (DF)
# sub6 (76) british_pound (E1)
# sub7 (77) right_cedilla (EA)
# sub8 (78) high_comma_off_center (EB)
# script_l (80) left_hook/tail (EC)
# circle_above (8A) ala_underscore (ED)
# superior_dot (8B) double_underscore (EE)
# umlaut (8C) ala_alpha (FA)
# candrabindu (8D) ala_beta (FB)
# ligature_first_half (8E) ala_gamma (FC)
# double_tilde_first_half (8F) yen (FD)
# sub9 (90) peso (FE)
# grave (9A)
# Attention Keys: (hex codes are the AID codes transmitted)
# pf1 through pf9 (F1 through F9)
# pf10 through pf12 (7A through 7C)
# pf13 through pf21 (C1 through C9)
# pf22 through pf24 (4A through 4C)
# enter (7D) pa1 (6C) pa2 (6E) pa3 (6B)
# clear (6D) treq (F0) cursel (7E)
# Cursor Movement:
# up down left right tab
# backtab newline home up*2 down*2
# left*2 right*2
# Editing:
# erase-eof erase-input delete-char insert-char
# dup field-mark rub-out
# Program Control:
# insert-mode (toggle insert mode)
# apl-mode (toggle keyboard APL mode)
# cursor-pos (toggle cursor position display)
# reset (unlock keyboard)
# prog-reset (reset program; resets above modes and I/O)
# print-screen (equivalent to "Print Screen..." from the "File" menu)
#
# Modifier is: normal, shift, command, command-shift, or option.
# If the user presses more than one modifier key, the precedence of the
# modifiers is: command-shift, command, option, and shift. It is not
# possible to specify mapping for other combinations, such as command-option.
# For ASCII key mappings, when "modifier" is omitted, the mapping applies
# to both "normal" and "shift". For keycode mappings, the default modifier
# is "normal", i.e. no modifiers.
#
# 'literal' specifies a mapping to the ASCII code defined by the character
# literal.
#
# "hexcode" specifies a mapping to the ASCII code given in hex. It must
# consist of exactly two hex digits.
#
# "Khexcode" specifies a keycode mapping to the code given in hex. It must
# consist of exactly two hex digits.
# If a keycode mapping is defined for a key, it takes precedence over an
# ASCII code mapping for it.
# Keycode mapping use the raw key codes provided by the Macintosh operating
# system for a key press event. They are hardware dependent, and should only
# be used when keys which must be distinguished return the same ASCII codes.
# For keycode values see "The Toolbox Event Manager" chapter in volumes 1 and
# 5 of "Inside Macintosh".
#
# tn3270 library mapping:
#
name: library
number: 130
# charcter mappings
space = "20" # spaces are ignored in literals too
cent = option "d2" # option [
period = '.'
less = '<'
lparen = '('
plus = '+'
or = '|'
ampersand = '&'
exclaim = '!'
dollar = '$'
asterisk = '*'
rparen = ')'
semi = ';'
not = '^'
minus = '-'
slash = '/'
vertical = option '`'
comma = ','
percent = '%'
underscore = '_'
greater = '>'
question = '?'
accent = '`'
colon = ':'
pound = "23" # can't use comment delimiter in a literal!
at = '@'
apostrophe = '''
equal = '='
dblquote = '"'
lca = 'a'
lcb = 'b'
lcc = 'c'
lcd = 'd'
lce = 'e'
lcf = 'f'
lcg = 'g'
lch = 'h'
lci = 'i'
lcj = 'j'
lck = 'k'
lcl = 'l'
lcm = 'm'
lcn = 'n'
lco = 'o'
lcp = 'p'
lcq = 'q'
lcr = 'r'
lcs = 's'
lct = 't'
lcu = 'u'
lcv = 'v'
lcw = 'w'
lcx = 'x'
lcy = 'y'
lcz = 'z'
tilde = '~'
lbrack = '['
rbrack = ']'
lbrace = '{'
rbrace = '}'
a = 'A'
b = 'B'
c = 'C'
d = 'D'
e = 'E'
f = 'F'
g = 'G'
h = 'H'
i = 'I'
j = 'J'
k = 'K'
l = 'L'
m = 'M'
n = 'N'
o = 'O'
p = 'P'
q = 'Q'
r = 'R'
s = 'S'
t = 'T'
u = 'U'
v = 'V'
w = 'W'
x = 'X'
y = 'Y'
z = 'Z'
backslash = '\'
0 = '0'
1 = '1'
2 = '2'
3 = '3'
4 = '4'
5 = '5'
6 = '6'
7 = '7'
8 = '8'
9 = '9'
sub1 = command '1'
sub2 = command '2'
sub3 = command '3'
sub4 = command '4'
sub5 = command '5'
sub6 = command '6'
sub7 = command '7'
sub8 = command '8'
sub9 = command '9'
sub0 = command '0'
sub_minus = command '-'
sub_plus = command '='
sup1 = option "K12"
sup1 = command-shift '1'
sup2 = option "K13"
sup2 = command-shift '2'
sup3 = option "K14"
sup3 = command-shift '3'
sup4 = option "K15"
sup4 = command-shift '4'
sup5 = option "K17"
sup5 = command-shift '5'
sup6 = option "K16"
sup6 = command-shift '6'
sup7 = option "K1a"
sup7 = command-shift '7'
sup8 = option "K1c"
sup8 = command-shift '8'
sup9 = option "K19"
sup9 = command-shift '9'
sup0 = option "K1d"
sup0 = command-shift '0'
sup_minus = option "K1b"
sup_minus = command-shift '-'
sup_plus = option "K18"
sup_plus = command-shift '='
digraph_ae_upper = command-shift 'q'
d_with_crossbar_upper = command-shift 'w'
polish_l_upper = command-shift 'e'
digraph_oe_upper = command-shift 'r'
o-hook_upper = command-shift 't'
scandinavian_o_upper = command-shift 'y'
icelandic_thorn_upper = command-shift 'u'
u-hook_upper = command-shift 'i'
sup_lparen = command-shift '['
sup_rparen = command-shift ']'
digraph_ae_lower = command 'q'
d_with_crossbar_lower = command 'w'
polish_l_lower = command 'e'
digraph_oe_lower = command 'r'
o-hook_lower = command 't'
scandinavian_o_lower = command 'y'
icelandic_thorn_lower = command 'u'
u-hook_lower = command 'i'
sub_lparen = command '['
sub_rparen = command ']'
plus_or_minus = command '\'
ala_alpha = command 'a'
turkish_i_lower = command 's'
ayn = command 'd'
alif = command 'f'
soft_sign = command 'g'
hard_sign = command-shift 'g'
script_l = command 'z'
british_pound = command-shift 'z'
musical_flat = command 'x'
subscript_patent_mark = command-shift 'x'
ala_gamma = command 'c'
eth = command 'v'
ala_dagger = command-shift 'v'
ala_beta = command 'b'
dot_in_middle_of_line = command-shift 'b'
upadhmaniya = normal "1b" # keypad clear
candrabindu = shift "1b" # keypad clear
ala_underscore = normal "K51" # keypad = (ADB keypad)
double_underscore = shift "K51" # keypad = (ADB keypad)
ala_underscore = shift "K48" # keypad , (numeric/Plus keypad)
double_underscore = command-shift "K48" # keypad , (numeric/Plus keypad)
double_dot_below = "K4b" # keypad / (ADB keypad)
double_dot_below = shift "K4d" # keypad / (numeric/Plus keypad)
double_tilde_first_half = normal "K43" # keypad * (ADB keypad)
double_tilde_first_half = shift "K42" # keypad * (numeric/Plus keypad)
double_tilde_second_half = shift "K43" # keypad * (ADB keypad)
double_tilde_second_half = command-shift "K42" # keypad * (numeric/Plus keypad)
umlaut = normal "K59" # keypad 7
acute = normal "K5b" # keypad 8
double_acute = shift "K5b" # keypad 8
macron = normal "K5c" # keypad 9
breve = shift "K5c" # keypad 9
left_hook/tail = normal "K4e" # keypad -
right_hook = shift "K4e" # keypad -
ala_circumflex = normal "K56" # keypad 4
hacek = shift "K56" # keypad 4
ala_tilde = normal "K57" # keypad 5
cedilla = normal "K58" # keypad 6
right_cedilla = shift "K58" # keypad 6
high_comma_centered = normal "K45" # keypad + (ADB keypad)
high_comma_centered = shift "K46" # keypad + (numeric/Plus keypad)
high_comma_off_center = shift "K45" # keypad + (ADB keypad)
high_comma_off_center = command-shift "K46" # keypad + (numeric/Plus keypad)
dot_below = normal "K53" # keypad 1
superior_dot = shift "K53" # keypad 1
grave = normal "K54" # keypad 2
circle_below = normal "K55" # keypad 3
circle_above = shift "K55" # keypad 3
ligature_first_half = normal "K4c" # keypad enter
ligature_second_half = shift "K4c" # keypad enter
pseudo_question = normal "K41" # keypad .
double_dagger = option "K52" # keypad 0
dagger = shift "K52" # keypad 0
enter = normal "0d"
pf1 = "K7a" # F1
pf2 = "K78" # F2
pf3 = "K63" # F3
pf4 = "K76" # F4
pf5 = "K60" # F5
pf6 = "K61" # F6
pf7 = "K62" # F7
pf7 = "K74" # page up
pf8 = "K64" # F8
pf8 = "K79" # page down
pf9 = "K65" # F9
pf10 = "K6d" # F10
pf11 = "K67" # F11
pf12 = "K6f" # F12
pf13 = "K69" # F13
pf13 = shift "K7a" # F1
pf14 = "K6b" # F14
pf14 = shift "K78" # F2
pf15 = "K71" # F15
pf15 = shift "K63" # F3
pf16 = shift "K76" # F4
pf17 = shift "K60" # F5
pf18 = shift "K61" # F6
pf19 = shift "K62" # F7
pf20 = shift "K64" # F8
pf21 = shift "K65" # F9
pf22 = shift "K6d" # F10
pf23 = shift "K67" # F11
pf24 = shift "K6f" # F12
pa1 = command ','
pa2 = command '.'
pa3 = command "03" # enter
treq = command '/'
cursel = command 'l'
up = "1e" # up arrow code
down = "1f" # down arrow code
left = "1c" # left arrow code
left = normal "08" # backspace/delete code
right = "1d" # right arrow code
tab = normal "09" # tab key
backtab = shift "09"
newline = "03" # enter key
newline = shift "0d" # return key
home = "K73" # home key
delete-char = shift "08" # backspace/delete key
delete-char = "K75" # X (Del) key
dup = option "K02" # dup
field-mark = option "K03" # "F" key
field-mark = option "K76" # F4
insert-char = option "08" # backspace/delete key
rub-out = command "08" # backspace/delete key
up*2 = option "1e" # up arrow code
down*2 = option "1f" # down arrow code
left*2 = option "1c" # left arrow code
right*2 = option "1d" # right arrow code
insert-mode = "K72" # ins/help
erase-eof = "K77" # end
clear = shift "K73" # home key
print-screen = shift "K69" # shift F13